package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("default")
public class DefaultController {
    /**
     *  处理器的方法，被拦截器拦截的对象
     */
    @RequestMapping("gotoIndex")
    public String gotoIndex(){
        System.out.println("欢迎访问gotoIndex");
        return "forward:/index.jsp";
    }
}
